import * as requestService from './../utils/requestService';

export function getGoodLists(params = {}) {
  let url = '/good/lists'
  return requestService.post(url, {
    page: 1,
    ...params
  })
}


export function getGoodInfo(id) {
  let url = '/good/info/'+id
  return requestService.get(url)
}

export function getGoodContent(id) {
  let url = '/good/content/'+id
  return requestService.get(url)
}

export function getGoodKeyword(params = {}) {
  let url = '/good/sug/'
  return requestService.get(url, params)
}

export function getGoodKey(params = {}) {
  let url = '/good/key'
  return requestService.get(url, params)
}

export function getGoodCat(params = {}) {
  let url = '/good/cate'
  return requestService.get(url, params);
}

export function getGoodCatTop(params = {}) {
  let url = '/good/catetop'
  return requestService.get(url);
}